package 编程题;
import java.util.*;
//最难的问题

/**
 * 密码解密的过程
 */
public class Num_7_29_02 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while(sc.hasNextLine()){
            String str = sc.nextLine();
            char[] rep = str.toCharArray();
            int i = 0;
            while(i < rep.length){
                char ch = str.charAt(i);
                if(ch >= 'A' && ch <= 'Z'){
                    ch -= 5;
                    if(ch < 'A') ch += 26;
                    rep[i] = ch;
                }
                i ++;

            }
            String sout = new String(rep);
            System.out.println(sout);
        }
    }
}
